package org.cuatrovientos.EMPIRE_FLEET;

/**
 * Represents a Tie Bomber
 * @author Sienar Fleet Systems
 * @greets the emperor
 */
public class TieBomber  extends SpaceShip {
	// attack range
	private int bombs;

    /**
     * constructor
     * @param n
     * @param type 
     */
    public TieBomber (String n, int type) {
            super(0);
            pilotName = n;
            this.type=type;
    }

    /**
     * only for bomber type (==2)
     * drop a bomb
     * @return bomb damage
     */
    public int bomb() {
            if (getType() == 2)
                    return 5;
            else
                    return 0;
    }

    int getBombs() {
            return bombs;
    }

    void setBombs(int bombs) {
            this.bombs = bombs;
    }


}

